package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        //学生
        Student zs = new Student("张三",24,"合肥","jsd2302","001");
//        zs.name = "张三";
//        zs.age = 24;
//        zs.address = "合肥";
//        zs.className = "jsd2302";
//        zs.stuId = "001";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();


        //老师
        Teacher ls = new Teacher("李四",25,"安庆",5000.0);
//        ls.name = "李四";
//        ls.age = 25;
//        ls.address = "安庆";
//        ls.salary = 5000.0;
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();


        //医生
        Doctor ww = new Doctor("王五",28,"芜湖","主治医师");
//        ww.name = "王五";
//        ww.age = 28;
//        ww.address = "芜湖";
//        ww.title = "主治医师";
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();


    }
}
